﻿#pragma once

#include <QToolBar>

namespace Domy {

/**
 * @brief The IssuesActionKey enum
 * @note  问题功能key
 */
enum IssuesActionKey {
    IssuesAct_Export = 0,
    IssuesAct_Clear,
    IssuesAct_Warning,
    IssuesAct_Error
};

/**
 * @brief The IssuesToolBar class
 * @note  问题工具栏
 */
class IssuesToolBar : public QToolBar
{
    Q_OBJECT
public:
    explicit IssuesToolBar(QWidget *parent = Q_NULLPTR);
    ~IssuesToolBar();

    /**
     * @brief setWaringVisibleActionChecked
     * @note  设置告警可见性action勾选
     * @param checked 勾选
     */
    void setWaringVisibleActionChecked(bool checked);

    /**
     * @brief setErrorVisibleActionChecked
     * @note  设置错误可见性action勾选
     * @param checked 勾选
     */
    void setErrorVisibleActionChecked(bool checked);

private:
    QAction *m_warning_act;
    QAction *m_error_act;
};

} // namespace Domy
